package kr.hkit.powerjava.chapter07;

import java.util.Scanner;

public class WorkFor02 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int sum = 0;
		int size; //회전수
		System.out.print("회전수를 입력하세요 : ");
		size = sc.nextInt();
		int[] n = new int[size];
		
	
		
		for(int i=0; i<=n.length-1; i++){
			System.out.print("정수를 입력하세요: ");
			n[i] = sc.nextInt();
			sum += n[i];	
		}
		System.out.println("입력된 정수 "+size+"개의 값은 : "+sum+"입니다");
	}
}
